import request from "../utils/request";

export const getVideoListAPI=(params)=>{
    return request({
        url:'/video/videoList',
        method:'get',
        params:params
    })
}

export const getVideoInfoAPI=(params)=>{
    return request({
        url:'/video/videoInfo',
        method:'get',
        params:params
    })
}

export const getCommentListAPI=(params)=>{
    return request({
        url:'/video/getCommentList',
        method:'get',
        params:params
    })
}

export const addCommentAPI=(params)=>{
    return request({
        url:'/video/addComment',
        method:'post',
        data:params
    })
}
export const addVideoAPI=(params)=>{
    return request({
        url:'/video/addVideo',
        method:'post',
        data:params
    })
}
export const goodAPI=(params)=>{
    return request({
        url:'/video/like',
        method:'put',
        data:params
    })
}
export const noGoodAPI=(params)=>{
    return request({
        url:'/video/noLike',
        method:'put',
        data:params
    })
}